﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.MQ
{
    /// <mq name="" ip ="127.0.0.1" localport="5005">
    ///     <queues>
    ///        <queue name="email" id="xm" >
    ///           <bindings>
    ///             <binding address="tcp:=//192.168.102.1:5555" />
    ///             <binding address="tcp:=//192.168.102.1:5505" />
    ///           </bindings>
    ///        </queue>
    ///     </queues>
    /// <mq>
    public abstract class Route
    {
        public event EventHandler Rec;

        public string Name
        {
            get;
            set;
        }

        public string Ip
        {
            get;
            set;
        }

        public int Localport
        {
            get;
            set;
        }

        public Protocol Protocol
        {
            get;
            set;
        }

        private List<RouteListPayLoad> RouteList
        {
            get;
            set;
        }

        public abstract void Start();
        public abstract void Stop();

        public abstract void Send(List<RouteListPayLoad> routeList);

        private void UploadList()
        {
            throw new System.NotImplementedException();
        }
    }
}
